import request from '@/utils/request'

// 查询楼栋核酸任务列表
export function listBuildingtask(query) {
  return request({
    url: '/nucleicacid/buildingtask/list',
    method: 'get',
    params: query
  })
}

// 查询楼栋核酸任务详细
export function getBuildingtask(id) {
  return request({
    url: '/nucleicacid/buildingtask/' + id,
    method: 'get'
  })
}

// 新增楼栋核酸任务
export function addBuildingtask(data) {
  return request({
    url: '/nucleicacid/buildingtask',
    method: 'post',
    data: data
  })
}

// 修改楼栋核酸任务
export function updateBuildingtask(data) {
  return request({
    url: '/nucleicacid/buildingtask',
    method: 'put',
    data: data
  })
}

// 删除楼栋核酸任务
export function delBuildingtask(id) {
  return request({
    url: '/nucleicacid/buildingtask/' + id,
    method: 'delete'
  })
}
